<?php

class WebUser extends CWebUser {

    //put your code here
    private $_model;
    
    protected function loadUser($id=null) {
        if ($this->_model === null) {
            if ($id !== null)
                $this->_model = User::model()->findByPk($id);
        }
        return $this->_model;
    }
    
    function getFull_name(){
        $user = $this->loadUser(Yii::app()->user->id);
        return $user->first_name;
    }
   
    function getUser_role(){
        Yii::app()->getModule('user')->getRole();        
    }
    
}

?>
